<?php

/**
 * 卖家模块
 * @version 1.0
 * @author ezhu <ezhu@jipukeji.com>
 */

namespace Shop\Model;

use Think\Model;

class SellerModel extends Model{
	
	protected $tableName = 'seller';
	
	
	/**
	 * 通过卖家名称获取信息（卖家登录时用）
	 * @param string $seller_name
	 * @return \Think\mixed
	 */
	public function getInfo($seller_name){
		$map['seller_name'] = $seller_name;
		return $this->where($map)->find();
	}
	
	
	
	
}